package com.example.michong.entity;

import com.example.michong.util.excel.ExcelImport;
import lombok.Data;

/**
 * 导入接收的实体类
 */
@Data
public class ExcelImportEntity {
    /**
     * 行号
     */
    private Integer rowNum;
    /**
     *  required 必填
     *  maxLength 最大长度
     *  unique 唯一
     */
    @ExcelImport(value = "姓名" ,required = true)
    private String name;

    @ExcelImport(value = "性别" , kv = "1-男;2-女")
    private String gender;

    @ExcelImport("年龄")
    private Integer age;

    @ExcelImport(value = "电话", maxLength = 11 ,required = true,unique = true)
    private String phone;

    @ExcelImport("头像")
    private String avatvr;

    /**
     * 原始数据
     */
    private String rowData;

    /**
     * 错误信息
     */
    private String rowTips;
}
